package com.tcode.service;

import com.tcode.bean.UserBean;
import com.tcode.dao.IUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private IUserMapper ius;

    public List<UserBean> getAllUser(){

        return ius.findAll();
    }

    public UserBean getUserById(int id){
        return ius.findUserById(id);
    }
}
